import React, { Component } from 'react'

export default class MainBanner extends Component {
  constructor(props) {
    super(props)
    console.log(props, '--oro')

  }
  render() {
    const { title, banners } = this.props
    return (
      <div>
        <h1>我是标题{title}</h1>
        <ul>
          {
            banners.map(item=>{
              return (
                <li key={item.acm}>
                  <span>{item.title}</span>
                  <a href={item.image}> <img src={item.image} alt={item.title} /></a>
                </li>
              )
            })
          }
        </ul>
      </div>
    )
  }
}
